/**************************
#PREPROCESS_START
    sed -i 's/.\/RTL\/Cache\/S011HD1P_X32Y2D128_BW.v//g' ./temp/hierarchy.rpt
#PREPROCESS_END
***************************/
module ysyx_210152
(
    input clock,
    input reset,
    input io_interrupt,

    input 		io_master_awready,
    output 		io_master_awvalid,
    output 	[31:0] 	io_master_awaddr, 	
    output 	[3:0] 	io_master_awid, 	
    output 	[7:0] 	io_master_awlen, 	
    output 	[2:0] 	io_master_awsize, 	
    output 	[1:0] 	io_master_awburst, 	

    input 		io_master_wready, 	
    output 		io_master_wvalid, 	
    output 	[63:0] 	io_master_wdata, 	
    output 	[7:0] 	io_master_wstrb, 	
    output 		io_master_wlast, 

    output 		io_master_bready,
    input 		io_master_bvalid,
    input 	[1:0] 	io_master_bresp,
    input 	[3:0] 	io_master_bid,

    input 		io_master_arready,
    output 		io_master_arvalid,
    output 	[31:0] 	io_master_araddr,
    output 	[3:0] 	io_master_arid,
    output 	[7:0] 	io_master_arlen,
    output 	[2:0] 	io_master_arsize,
    output 	[1:0] 	io_master_arburst,


    output 		io_master_rready,
    input 		io_master_rvalid, 	
    input 	[1:0] 	io_master_rresp,
    input 	[63:0] 	io_master_rdata, 	
    input 		io_master_rlast, 	
    input 	[3:0] 	io_master_rid,
    //Slave Interface
    output 		io_slave_awready,
    input 		io_slave_awvalid,
    input 	[31:0] 	io_slave_awaddr,
    input 	[3:0] 	io_slave_awid,
    input 	[7:0] 	io_slave_awlen,
    input 	[2:0] 	io_slave_awsize,
    input 	[1:0] 	io_slave_awburst,

    output 		io_slave_wready,
    input 		io_slave_wvalid,
    input 	[63:0] 	io_slave_wdata,
    input 	[7:0] 	io_slave_wstrb,
    input 		io_slave_wlast,

    input 		io_slave_bready, 	
    output 		io_slave_bvalid,
    output 	[1:0] 	io_slave_bresp,
    output 	[3:0] 	io_slave_bid,
    //Slave Read
    output 		io_slave_arready,
    input 		io_slave_arvalid,
    input 	[31:0] 	io_slave_araddr,
    input 	[3:0] 	io_slave_arid,
    input 	[7:0] 	io_slave_arlen,
    input 	[2:0] 	io_slave_arsize,
    input 	[1:0] 	io_slave_arburst,

    input 		io_slave_rready,
    output 		io_slave_rvalid, 	
    output 	[1:0] 	io_slave_rresp,
    output 	[63:0] 	io_slave_rdata,
    output 		io_slave_rlast, 	
    output 	[3:0] 	io_slave_rid
);

Vostok564_top  Core_N1(
//----------------------Global signal---------------------
    .clock(clock),   //Core clock (PRV564 kernal's clock)
    .reset(reset),   //Core reset(), async
    .io_interrupt(io_interrupt),
//-----------------------AXI interface---------------------
    .io_master_awid(io_master_awid),
    .io_master_awaddr(io_master_awaddr),
    .io_master_awlen(io_master_awlen),
    .io_master_awsize(io_master_awsize),
    .io_master_awburst(io_master_awburst),
    .io_master_awvalid(io_master_awvalid),
    .io_master_awready(io_master_awready),
//---------------------写数据通道-----------------------------
    .io_master_wdata(io_master_wdata),
    .io_master_wstrb(io_master_wstrb),
    .io_master_wlast(io_master_wlast),
    .io_master_wvalid(io_master_wvalid),
    .io_master_wready(io_master_wready),
//----------------------写回复通道-------------------------------	
    .io_master_bid(io_master_bid),
    .io_master_bresp(io_master_bresp),
    .io_master_bvalid(io_master_bvalid),
    .io_master_bready(io_master_bready),
//---------------------读地址通道-----------------------------------	
    .io_master_arid(io_master_arid),
    .io_master_araddr(io_master_araddr),
    .io_master_arlen(io_master_arlen),
    .io_master_arsize(io_master_arsize),
    .io_master_arburst(io_master_arburst),
    .io_master_arvalid(io_master_arvalid),
    .io_master_arready(io_master_arready),
//----------------------读数据通道----------------------------------
    .io_master_rid(io_master_rid),
    .io_master_rdata(io_master_rdata),
    .io_master_rresp(io_master_rresp),
    .io_master_rlast(io_master_rlast),
    .io_master_rvalid(io_master_rvalid),
    .io_master_rready(io_master_rready)
);

endmodule
